package com.lh.web.dao.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.common.entity.admin.Category;
import com.lh.common.entity.admin.Column;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author FH
 * @ClassName: ColumnMapper
 * @Description: (类作用)
 * @date: 2020-06-29 10:58
 */
@Mapper
public interface ColumnMapper extends BaseMapper<Column> {

    List<Column> queryColumnList(Map<String, Object> param);

    Column queryColumnList(String name);

    int addColumn(Column column);

    int addColumnShopRef(@Param("id")Long id, @Param("shopId")Long shopId);

    int updateColumn(Column column);

    int deleteColumnShopRef(Long columnId);

    int deleteColumn(Long id);

    List<Map> queryColumnDetails(Long id);

    List<Map>  querySort(Object sortId);

    List<Map> queryShop(List list);

    int queryColumnCount();
}
